/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.pojo;

import cn.yzc.utils.group.Insert;
import cn.yzc.utils.group.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * <p>Project: SpringBootPro - UserService</p>
 * <p>Powered by yzc On 2023-11-10 21:36:48</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Data
@ApiModel("用户信息")
public class User {
    @ApiModelProperty(value = "id",dataType = "java.lang.String")
    private  String id;
    @ApiModelProperty(value = "用户名",dataType = "java.lang.String",required = true)
    @NotBlank(message = "账号不能为空",groups = {Insert.class})
    private String username;
    @ApiModelProperty(value = "密码",dataType = "java.lang.String",required = true)
    @NotBlank(message = "密码不能为空",groups = {Insert.class, Update.class})
    private String password;
}
